﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="manager_taskexec_Default" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>执行任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>执行任务
            <small>任务相关</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">执行任务</a></li>
            <li class="active">任务相关</li>
        </ol>
    </section>

    <section class="content">

        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">执行任务</h3>
            </div>
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#task1" role="tab" data-toggle="tab">考核<b style="color: red;">[<%=num_1 %>]</b></a></li>
                <li role="presentation"><a href="#task2" role="tab" data-toggle="tab">被考核<b style="color: red;">[<%=num_2 %>]</b></a></li>
                <li role="presentation"><a href="#task3" role="tab" data-toggle="tab">已结束考核<b style="color: red;">[<%=num_3 %>]</b></a></li>
                <li role="presentation"><a href="#task4" role="tab" data-toggle="tab">已结束被考核<b style="color: red;">[<%=num_4 %>]</b></a></li>
                <li role="presentation"><a href="#task5" role="tab" data-toggle="tab">失败<b style="color: red;">[<%=num_5 %>]</b></a></li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="task1">
                    <div class="box-body">
                        <table id="Listask1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">结束时间</th>
                                    <th class="col-sm-1">考核人</th>
                                    <th class="col-sm-1">被考人</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask1" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToShortDateString() %></td>
                                            <td><%# Eval("Ry_Kh_Mc") %></td>
                                            <td><%# Eval("Ry_Bkh_Mc") %></td>
                                            <td><%#  SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString())+SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task2">
                    <div class="box-body">
                        <table id="Listask2" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">结束时间</th>
                                    <th class="col-sm-1">考核人</th>
                                    <th class="col-sm-1">被考人</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask2" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToShortDateString() %></td>
                                            <td><%# Eval("Ry_Kh_Mc") %></td>
                                            <td><%# Eval("Ry_Bkh_Mc") %></td>
                                            <td><%#  SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString())+SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task3">
                    <div class="box-body">
                        <table id="Listask3" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">结束时间</th>
                                    <th class="col-sm-1">考核人</th>
                                    <th class="col-sm-1">被考人</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask3" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToShortDateString() %></td>
                                            <td><%# Eval("Ry_Kh_Mc") %></td>
                                            <td><%# Eval("Ry_Bkh_Mc") %></td>
                                            <td><%#  SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString())+SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task4">
                    <div class="box-body">
                        <table id="Listask4" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">结束时间</th>
                                    <th class="col-sm-1">考核人</th>
                                    <th class="col-sm-1">被考人</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask4" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToShortDateString() %></td>
                                            <td><%# Eval("Ry_Kh_Mc") %></td>
                                            <td><%# Eval("Ry_Bkh_Mc") %></td>
                                            <td><%#  SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString())+SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task5">
                    <div class="box-body">
                        <table id="Listask5" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">结束时间</th>
                                    <th class="col-sm-1">考核人</th>
                                    <th class="col-sm-1">被考人</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask5" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToShortDateString() %></td>
                                            <td><%# Eval("Ry_Kh_Mc") %></td>
                                            <td><%# Eval("Ry_Bkh_Mc") %></td>
                                            <td><%#  SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString())+SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script>
        $(document).ready(function () {
            $("#Listask1").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask2").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask3").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask4").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask5").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
        });
    </script>
</asp:Content>



